package com.huiyou.service;

import com.huiyou.base.BaseService;
import com.huiyou.mapper.UserMapper;
import com.huiyou.model.UserModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;

@Service
public class UserService extends BaseService <UserModel,UserMapper>{
    @Autowired
    UserMapper userMapper;
    public UserModel nameCheck(HashMap map) {
        return userMapper.namecheck(map);
    }

    public  UserModel getByToken(UserModel userModel){
        return userMapper.getByToken(userModel);
    }
}
